/*******************************************************************************
 * Copyright (c) 2006 The Pampered Chef, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     The Pampered Chef, Inc. - initial API and implementation
 ******************************************************************************/
 package org.eclipse.core.databinding.observable.gwt;

import com.google.gwt.user.client.ui.UIObject;
import com.google.gwt.user.client.ui.Widget;

import org.eclipse.core.databinding.observable.Realm;
import org.eclipse.core.databinding.observable.value.AbstractVetoableValue;

public abstract class AbstractWidgetObservableValue extends AbstractVetoableValue implements IWidgetObservable {
  private final UIObject widget;

  public AbstractWidgetObservableValue(Realm realm, UIObject widget) {
    super(realm);
    this.widget = widget;
  }

  /**
   * @return Returns the widget.
   */
  public UIObject getWidget() {
    return widget;
  }
}
